#!/bin/bash
time=`date "+%Y-%m-%d-%H"`
log_path="/var/log/nginx/"
mv ${log_path}access.log ${log_path}access${time}.log
kill -USR1 `cat /var/run/nginx.pid`
